package service;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class usersManagertest {

	public static void main(String[] args) {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
		
		UsersManager usersManager = (UsersManager)ctx.getBean("UsersManager");
		
		System.out.println(usersManager.checkLogin("admin", "admin"));
		System.out.println(usersManager.checkLogin("admin", "a"));
		System.out.println(usersManager.checkLogin("a", "admin"));
		System.out.println(usersManager.checkLogin("a", "a"));
	}
}
